package oop3.pet01;

public class TestPet {
    public static void main(String[] args) {
        Dog dog = new Dog("大黄", 30, 5, '公', "金毛", 100);
        Cat cat = new Cat("橘子", 15, 3, '母', "金渐层", 90);
        Parrot parrot = new Parrot("小青", 3, 2, '公', "玫瑰鹦鹉", 60);
        dog.show();
        dog.eat();
        dog.sleep();
        dog.grab("小灰灰");
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        cat.show();
        cat.eat();
        cat.sleep();
        cat.grab("Jerry");
        cat.climb();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        parrot.show();
        parrot.eat();
        parrot.sleep();
        parrot.say();
        parrot.fly();
    }
}
